<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="./js/react.development.js"></script>
  <script src="./js/react-dom.development.js"></script>
</head>
<body>
  <div id="root"></div>
  <script>
    let h2=React.createElement('h2',{title:"这是第一次体验react" ,abc:'123'},'react我来啦！！')
    let p=React.createElement('p',{aaa:'sss'},'这是一个内容')
 
    ReactDOM.render(h2,document.querySelector('#root'))
  </script>
</body>
</html>